﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhj.Community.Domain.Entitys
{
    public class TestStudentFirend: BaseEntity
    {
        public long StudentId { get; set; }

        [StringLength(500, ErrorMessage = "姓名最长为500")]
        [Required(ErrorMessage = "姓名不能为空")]
        public string Name { get; set; }

        [Range(0, 200, ErrorMessage = "年龄只能输入0到200之间")]
        public int Age { get; set; }
    }
}
